<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php $url = HttpUtil::baseUrl(); ?>
    <link rel="shortcut icon" href="<?php echo $url;?>/favicon.ico"></link>
    
    <link href='<?php echo $url;?>/styles/style.css' rel='stylesheet' type='text/css' />
        
    <script type="text/javascript" src="<?php echo $url;?>/scripts/lib/jquery.js"></script>
    <script type="text/javascript" src="<?php echo $url;?>/scripts/lib/jquery.alerts.js"></script>
    <script type="text/javascript" src="<?php echo $url;?>/scripts/common.js"></script>
    <script type="text/javascript" src="<?php echo $url;?>/scripts/inventory.js"></script>



</head>

<body>
<form action="<?php echo $url;?>/inventory/product/submitupload" method="post" enctype="multipart/form-data"  id="imageForm" name="imageForm">
<div class="upload_image" style="width:700px;margin-left:70px;margin-right:auto;margin-top:50px;">

<?php 
$imageInfo = $this->imageInfo;
$productId = $imageInfo["pid"];
$itemId = $imageInfo["itemId"];
?>

    <input type="hidden" name="uploadProductId" id="uploadProductId" value="<?php echo $productId; ?>" />
    <input type="hidden" name="uploadItemId" id="uploadItemId" value="<?php echo $itemId; ?>" />
    <input type="hidden" name="uploadUrl" id="uploadUrl" value="<?php echo $url; ?>" />
    
    <!-- upload begin -->
    
    <?php for($i = 0; $i < 10; $i++){ ?>
    
    <div id="upload_<?php echo $i; ?>">
	    <div style="margin-left:10px;margin-top:10px;">
	        <div style="margin-top:0px;margin-left:0px;float:left;margin-left:10px">
	            <label style="margin-left:0px;*margin-left:0px;"><?php echo $this->translate("defaultImage"); ?></label>
	            <select id="defaultImage_<?php echo $i; ?>" name="defaultImage[]" style="margin-left:20px;*margin-left:10px;" onchange="javascript:Inventory.isDefaultImage(<?php echo $i; ?>);">
	                <option value="1"><?php echo $this->translate("yesLabel"); ?></option>
	                <option value="0" selected="selected"><?php echo $this->translate("noLabel"); ?></option>
	            </select>
	        </div>
	        <div style="margin-top:0px;margin-left:0px;float:left;margin-left:10px">
	            <label><?php echo $this->translate("sortOrder"); ?></label>
	            <input id="sortOrder_<?php echo $i; ?>" style="margin-left:20px;*margin-left:10px;" type="text" size="3" name="sortOrder[]" onblur="javascript:Inventory.setImageSort(<?php echo $i; ?>);" />
	            <div id="errorSortOrder" style="color:red;display:none;"><?php echo $this->translate("errorInfoSortOrder"); ?></div>
	        </div>
            <div style="margin-top:0px;margin-bottom:0px;margin-left:10px;float:left;">
	            <input type="file" name="uploadFileName_<?php echo $i; ?>" id="uploadFileName_<?php echo $i; ?>" />
	            <div id="errorInfo" style="color:red;display:none;"><?php echo $this->translate("errorInfoUpload"); ?></div>
	        </div>
	        <div class="clear"></div>
	    </div>
    </div>
    <?php } ?>
    
    
    
    <!-- upload end -->
    
    <div class="centerbig_modal_button_center" style="margin-top:30px;margin-left:0px;">
        <input style="margin-left:10px;*margin-left:20px;" type="button" value="<?php echo $this->translate("uploadBtn"); ?>" onclick="javascript:Inventory.subUploadImage();" />
        <!-- 
        <input style="margin-left:30px;*margin-left:40px;" type="button" value="<?php echo $this->translate("cancelBtn"); ?>" onclick="javascript:Inventory.closeWindow('showImageInfo');" />
        -->
    </div>

</div>
</form>

</body>
</html>